package at.bartinger.snake;


public class Bonus {

	
	public SnakeElement bonus;
	public double x;
	public double y;
	public int radius;
	
	public boolean selected = false;
	
	private int screenH;
	private int screenW;
	
	public int value;
	
	public Bonus(int value, int radius, int screenH, int screenW) {
		this.radius = radius;
		this.screenH = screenH;
		this.screenW = screenW;
		this.value = value;
	}
	
	public void addBonusElement(){
		x = 6+(Math.random() * (screenW-12));
		y = 6+(Math.random() * (screenH-12));
		bonus = new SnakeElement(x, y, radius);
	}

	
}
